package com.ln.lnzw.adapter;

import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ln.lnzw.R;
import com.ln.lnzw.bean.PublicityBean;
import com.ln.lnzw.bean.WcmBean;

import java.util.List;

/**
 * Created by wuwei on 2018/4/24.
 */

public class ApprovalPublicityAdapter extends BaseQuickAdapter<PublicityBean.ResultBean.ListBean,BaseViewHolder> {
    public ApprovalPublicityAdapter(int layoutResId, @Nullable List<PublicityBean.ResultBean.ListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PublicityBean.ResultBean.ListBean item) {
        helper.setText(R.id.tv_shenqingfang,"申请方："+item.getAppPersonName());
        helper.setText(R.id.tv_bianhao,"申请编号："+item.getRunnumber());
        helper.setText(R.id.tv_zhuti,"实施主体："+item.getDepartmentName());
        helper.setText(R.id.tv_mingcheng,"职权名称："+item.getProcessName());
        helper.setText(R.id.tv_shenbaotime,"申报时间："+item.getReceviedTime());
        helper.setText(R.id.tv_pizhuntime,"批准时间："+item.getCompleteTime());
    }
}
